<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>usbpsu: xusb_ch9.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">usbpsu
   </div>
   <div id="projectbrief">Vitis Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="pages.html"><span>Examples</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('xusb__ch9_8h.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xusb_ch9.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<div class="textblock"><p>This file contains definitions used chapter 9 specific code. </p>
<pre>
MODIFICATION HISTORY:</pre><pre>Ver   Who  Date     Changes
</p>
<hr/>
<p>
1.0   sg  06/06/16  First release
1.1     vak  30/11/16  updated for adding ch9 function callbacks
1.2   mn  01/20/17  fix to assign EP number and direction from wIndex field
1.4   BK  12/01/18  Renamed the file and added changes to have a common
               example for all USB IPs.</pre><pre></pre> </div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Request types</div></td></tr>
<tr class="memitem:a8be8332e2da1e54c74c5f2a2230b0a28"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusb__ch9_8h.html#a8be8332e2da1e54c74c5f2a2230b0a28">USB_REQ_TYPE_MASK</a>&#160;&#160;&#160;0x60</td></tr>
<tr class="memdesc:a8be8332e2da1e54c74c5f2a2230b0a28"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mask for request opcode.  <a href="#a8be8332e2da1e54c74c5f2a2230b0a28">More...</a><br/></td></tr>
<tr class="separator:a8be8332e2da1e54c74c5f2a2230b0a28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64404ce1fb01607a70f4dbf09b5c9ed8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusb__ch9_8h.html#a64404ce1fb01607a70f4dbf09b5c9ed8">USB_CMD_STDREQ</a>&#160;&#160;&#160;0x00</td></tr>
<tr class="memdesc:a64404ce1fb01607a70f4dbf09b5c9ed8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Standard Request.  <a href="#a64404ce1fb01607a70f4dbf09b5c9ed8">More...</a><br/></td></tr>
<tr class="separator:a64404ce1fb01607a70f4dbf09b5c9ed8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd9c941e7cfb86f5b0daf5c8eaee257a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusb__ch9_8h.html#acd9c941e7cfb86f5b0daf5c8eaee257a">USB_CMD_CLASSREQ</a>&#160;&#160;&#160;0x20</td></tr>
<tr class="memdesc:acd9c941e7cfb86f5b0daf5c8eaee257a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Class Request.  <a href="#acd9c941e7cfb86f5b0daf5c8eaee257a">More...</a><br/></td></tr>
<tr class="separator:acd9c941e7cfb86f5b0daf5c8eaee257a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bca8c6c246291af78ec61f05a4684d5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusb__ch9_8h.html#a5bca8c6c246291af78ec61f05a4684d5">USB_CMD_VENDREQ</a>&#160;&#160;&#160;0x40</td></tr>
<tr class="memdesc:a5bca8c6c246291af78ec61f05a4684d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Vendor Request.  <a href="#a5bca8c6c246291af78ec61f05a4684d5">More...</a><br/></td></tr>
<tr class="separator:a5bca8c6c246291af78ec61f05a4684d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a435416dd71e258cfd83be50a991db726"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a435416dd71e258cfd83be50a991db726"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_ENDPOINT_NUMBER_MASK</b>&#160;&#160;&#160;0x0f</td></tr>
<tr class="separator:a435416dd71e258cfd83be50a991db726"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93a6aa5841b4ff46167822362add046d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a93a6aa5841b4ff46167822362add046d"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_ENDPOINT_DIR_MASK</b>&#160;&#160;&#160;0x80</td></tr>
<tr class="separator:a93a6aa5841b4ff46167822362add046d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42afa2f0f2e88219af617c036745886e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a42afa2f0f2e88219af617c036745886e"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_ENDPOINT_XFERTYPE_MASK</b>&#160;&#160;&#160;0x03</td></tr>
<tr class="separator:a42afa2f0f2e88219af617c036745886e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Request Values</div></td></tr>
<tr class="memitem:a9a493ab751c46c46ab88d558e683a323"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9a493ab751c46c46ab88d558e683a323"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_REQ_GET_STATUS</b>&#160;&#160;&#160;0x00</td></tr>
<tr class="separator:a9a493ab751c46c46ab88d558e683a323"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43687a0101d3a62f05ffcd6e80cfa7ef"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a43687a0101d3a62f05ffcd6e80cfa7ef"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_REQ_CLEAR_FEATURE</b>&#160;&#160;&#160;0x01</td></tr>
<tr class="separator:a43687a0101d3a62f05ffcd6e80cfa7ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3661e3551d3dbd0e10debfe058791045"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3661e3551d3dbd0e10debfe058791045"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_REQ_SET_FEATURE</b>&#160;&#160;&#160;0x03</td></tr>
<tr class="separator:a3661e3551d3dbd0e10debfe058791045"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaca043a771a5d020e91011f458a3d31c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaca043a771a5d020e91011f458a3d31c"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_REQ_SET_ADDRESS</b>&#160;&#160;&#160;0x05</td></tr>
<tr class="separator:aaca043a771a5d020e91011f458a3d31c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae10a1fd5f65d075c17536fd3f7d8472e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae10a1fd5f65d075c17536fd3f7d8472e"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_REQ_GET_DESCRIPTOR</b>&#160;&#160;&#160;0x06</td></tr>
<tr class="separator:ae10a1fd5f65d075c17536fd3f7d8472e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae787427813c070874ed3493b57f1e5d3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae787427813c070874ed3493b57f1e5d3"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_REQ_SET_DESCRIPTOR</b>&#160;&#160;&#160;0x07</td></tr>
<tr class="separator:ae787427813c070874ed3493b57f1e5d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4c9a3af66b1d3203140c45af59de525"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae4c9a3af66b1d3203140c45af59de525"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_REQ_GET_CONFIGURATION</b>&#160;&#160;&#160;0x08</td></tr>
<tr class="separator:ae4c9a3af66b1d3203140c45af59de525"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74588b0ebd757cfd2b9e4533324e7ae7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a74588b0ebd757cfd2b9e4533324e7ae7"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_REQ_SET_CONFIGURATION</b>&#160;&#160;&#160;0x09</td></tr>
<tr class="separator:a74588b0ebd757cfd2b9e4533324e7ae7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0eb3845dcaf168d3755565f7a89b3f6e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0eb3845dcaf168d3755565f7a89b3f6e"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_REQ_GET_INTERFACE</b>&#160;&#160;&#160;0x0a</td></tr>
<tr class="separator:a0eb3845dcaf168d3755565f7a89b3f6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ae35a6b81c8115f19dda1ef2180e73e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2ae35a6b81c8115f19dda1ef2180e73e"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_REQ_SET_INTERFACE</b>&#160;&#160;&#160;0x0b</td></tr>
<tr class="separator:a2ae35a6b81c8115f19dda1ef2180e73e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a315ad41775c2f71af202a4f5b76f8978"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a315ad41775c2f71af202a4f5b76f8978"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_REQ_SYNC_FRAME</b>&#160;&#160;&#160;0x0c</td></tr>
<tr class="separator:a315ad41775c2f71af202a4f5b76f8978"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1db63ba2e17bb33b46f4409ecdf8db49"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1db63ba2e17bb33b46f4409ecdf8db49"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_REQ_SET_SEL</b>&#160;&#160;&#160;0x30</td></tr>
<tr class="separator:a1db63ba2e17bb33b46f4409ecdf8db49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18061fabde9ccfd98d744666d94b5cfb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a18061fabde9ccfd98d744666d94b5cfb"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_REQ_SET_ISOCH_DELAY</b>&#160;&#160;&#160;0x31</td></tr>
<tr class="separator:a18061fabde9ccfd98d744666d94b5cfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Feature Selectors</div></td></tr>
<tr class="memitem:a926f4719a748bfd0d9b68136468a7d0f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a926f4719a748bfd0d9b68136468a7d0f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_ENDPOINT_HALT</b>&#160;&#160;&#160;0x00</td></tr>
<tr class="separator:a926f4719a748bfd0d9b68136468a7d0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cc94201b56bd028068568de7a6cf68c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6cc94201b56bd028068568de7a6cf68c"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_DEVICE_REMOTE_WAKEUP</b>&#160;&#160;&#160;0x01</td></tr>
<tr class="separator:a6cc94201b56bd028068568de7a6cf68c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51dcf0e5889baa4c2cc68c8ecc254eb1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a51dcf0e5889baa4c2cc68c8ecc254eb1"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_TEST_MODE</b>&#160;&#160;&#160;0x02</td></tr>
<tr class="separator:a51dcf0e5889baa4c2cc68c8ecc254eb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b28956b1dcf288c6d38e58de5634133"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1b28956b1dcf288c6d38e58de5634133"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_U1_ENABLE</b>&#160;&#160;&#160;0x30</td></tr>
<tr class="separator:a1b28956b1dcf288c6d38e58de5634133"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75217f246e40e7caff58ae3c9b4b1963"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a75217f246e40e7caff58ae3c9b4b1963"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_U2_ENABLE</b>&#160;&#160;&#160;0x31</td></tr>
<tr class="separator:a75217f246e40e7caff58ae3c9b4b1963"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00ca513cdf2075d55fb593baca88ecc3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a00ca513cdf2075d55fb593baca88ecc3"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_INTRF_FUNC_SUSPEND</b>&#160;&#160;&#160;0x00	/* function suspend */</td></tr>
<tr class="separator:a00ca513cdf2075d55fb593baca88ecc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Descriptor Types</div></td></tr>
<tr class="memitem:a1eeee364834b9968e99bceac985efdf9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1eeee364834b9968e99bceac985efdf9"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_TYPE_DEVICE_DESC</b>&#160;&#160;&#160;0x01</td></tr>
<tr class="separator:a1eeee364834b9968e99bceac985efdf9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeec13d3b5ee8a7e32a936ab1cad81077"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeec13d3b5ee8a7e32a936ab1cad81077"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_TYPE_CONFIG_DESC</b>&#160;&#160;&#160;0x02</td></tr>
<tr class="separator:aeec13d3b5ee8a7e32a936ab1cad81077"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07028fdba8df065d5c64d3fc318709de"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a07028fdba8df065d5c64d3fc318709de"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_TYPE_STRING_DESC</b>&#160;&#160;&#160;0x03</td></tr>
<tr class="separator:a07028fdba8df065d5c64d3fc318709de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83f8f52050312826f98a75457787f8a6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a83f8f52050312826f98a75457787f8a6"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_TYPE_INTERFACE_DESC</b>&#160;&#160;&#160;0x04</td></tr>
<tr class="separator:a83f8f52050312826f98a75457787f8a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a065ef0ece8a164478d33b8c588d4b338"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a065ef0ece8a164478d33b8c588d4b338"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_TYPE_ENDPOINT_CFG_DESC</b>&#160;&#160;&#160;0x05</td></tr>
<tr class="separator:a065ef0ece8a164478d33b8c588d4b338"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46e91daffc4093dfaeea44128ddbe77c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a46e91daffc4093dfaeea44128ddbe77c"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_TYPE_DEVICE_QUALIFIER</b>&#160;&#160;&#160;0x06</td></tr>
<tr class="separator:a46e91daffc4093dfaeea44128ddbe77c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fb4c940d3eebb83062dee2d5b2b813b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1fb4c940d3eebb83062dee2d5b2b813b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>OSD_TYPE_CONFIG_DESCR</b>&#160;&#160;&#160;0x07</td></tr>
<tr class="separator:a1fb4c940d3eebb83062dee2d5b2b813b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2f9c438d0a1d60f3b44772d524953f9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae2f9c438d0a1d60f3b44772d524953f9"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_TYPE_INTERFACE_ASSOCIATION</b>&#160;&#160;&#160;0x0b</td></tr>
<tr class="separator:ae2f9c438d0a1d60f3b44772d524953f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c73097a46352acad1f2c123b5ed5ff4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6c73097a46352acad1f2c123b5ed5ff4"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_TYPE_BOS_DESC</b>&#160;&#160;&#160;0x0F</td></tr>
<tr class="separator:a6c73097a46352acad1f2c123b5ed5ff4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1cfd6f13aa6ecf18c4fc45aea69d2146"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1cfd6f13aa6ecf18c4fc45aea69d2146"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_TYPE_HID_DESC</b>&#160;&#160;&#160;0x21</td></tr>
<tr class="separator:a1cfd6f13aa6ecf18c4fc45aea69d2146"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7cd5e5f1fbd135343d99c7610f52e73b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7cd5e5f1fbd135343d99c7610f52e73b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_TYPE_REPORT_DESC</b>&#160;&#160;&#160;0x22</td></tr>
<tr class="separator:a7cd5e5f1fbd135343d99c7610f52e73b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f5bc71c91c8c64e1a5b467c2cad9f05"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7f5bc71c91c8c64e1a5b467c2cad9f05"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_TYPE_DFUFUNC_DESC</b>&#160;&#160;&#160;0x21    /* DFU Functional Desc */</td></tr>
<tr class="separator:a7f5bc71c91c8c64e1a5b467c2cad9f05"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Status type</div></td></tr>
<tr class="memitem:add9273c9db74005320b9b4d2e77323c5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="add9273c9db74005320b9b4d2e77323c5"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_STATUS_MASK</b>&#160;&#160;&#160;0x3</td></tr>
<tr class="separator:add9273c9db74005320b9b4d2e77323c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64f098fc24025cd6478a436e2a8eba85"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a64f098fc24025cd6478a436e2a8eba85"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_STATUS_DEVICE</b>&#160;&#160;&#160;0x0</td></tr>
<tr class="separator:a64f098fc24025cd6478a436e2a8eba85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75885a661e7845356536cb92dc809ee9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a75885a661e7845356536cb92dc809ee9"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_STATUS_INTERFACE</b>&#160;&#160;&#160;0x1</td></tr>
<tr class="separator:a75885a661e7845356536cb92dc809ee9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8272157df84f3cb8a4b8e159088cb93"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af8272157df84f3cb8a4b8e159088cb93"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_STATUS_ENDPOINT</b>&#160;&#160;&#160;0x2</td></tr>
<tr class="separator:af8272157df84f3cb8a4b8e159088cb93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">EP Types</div></td></tr>
<tr class="memitem:ac0c33c0c20c57a68596e55b00a6302b7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac0c33c0c20c57a68596e55b00a6302b7"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_EP_CONTROL</b>&#160;&#160;&#160;0</td></tr>
<tr class="separator:ac0c33c0c20c57a68596e55b00a6302b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2defbb9d8ba5374954dfcd55afdc45b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa2defbb9d8ba5374954dfcd55afdc45b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_EP_ISOCHRONOUS</b>&#160;&#160;&#160;1</td></tr>
<tr class="separator:aa2defbb9d8ba5374954dfcd55afdc45b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bb6534247e1a0ac44e2eeb5b3a6934f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4bb6534247e1a0ac44e2eeb5b3a6934f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_EP_BULK</b>&#160;&#160;&#160;2</td></tr>
<tr class="separator:a4bb6534247e1a0ac44e2eeb5b3a6934f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af51a3af3807dd55e340c1ddbc3f2d352"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af51a3af3807dd55e340c1ddbc3f2d352"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_EP_INTERRUPT</b>&#160;&#160;&#160;3</td></tr>
<tr class="separator:af51a3af3807dd55e340c1ddbc3f2d352"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Device Classes</div></td></tr>
<tr class="memitem:a8785f84db1be6b0b5da34cd91a1b6138"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8785f84db1be6b0b5da34cd91a1b6138"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_CLASS_AUDIO</b>&#160;&#160;&#160;0x01</td></tr>
<tr class="separator:a8785f84db1be6b0b5da34cd91a1b6138"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af062e949014bed74a8b5fedcf1705602"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af062e949014bed74a8b5fedcf1705602"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_CLASS_HID</b>&#160;&#160;&#160;0x03</td></tr>
<tr class="separator:af062e949014bed74a8b5fedcf1705602"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb5fc9c9b6ca548466f0a32011098149"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adb5fc9c9b6ca548466f0a32011098149"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_CLASS_STORAGE</b>&#160;&#160;&#160;0x08</td></tr>
<tr class="separator:adb5fc9c9b6ca548466f0a32011098149"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02fb07e20ad6d1af64439f40093bc80f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a02fb07e20ad6d1af64439f40093bc80f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_CLASS_MISC</b>&#160;&#160;&#160;0xEF</td></tr>
<tr class="separator:a02fb07e20ad6d1af64439f40093bc80f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2cc8ab485b0707e0a207199b41b2b26f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2cc8ab485b0707e0a207199b41b2b26f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_CLASS_DFU</b>&#160;&#160;&#160;0xFE</td></tr>
<tr class="separator:a2cc8ab485b0707e0a207199b41b2b26f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acacc4de7981ab8e877680cd5a8c3b227"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acacc4de7981ab8e877680cd5a8c3b227"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>USB_CLASS_VENDOR</b>&#160;&#160;&#160;0xFF</td></tr>
<tr class="separator:acacc4de7981ab8e877680cd5a8c3b227"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a4a51f5e7948e7a27adcd66023d48876d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xusb__ch9_8h.html#a4a51f5e7948e7a27adcd66023d48876d">Ch9Handler</a> (struct <a class="el" href="struct_usb___dev_data.html">Usb_DevData</a> *InstancePtr, SetupPacket *SetupData)</td></tr>
<tr class="memdesc:a4a51f5e7948e7a27adcd66023d48876d"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function handles a Setup Data packet from the host.  <a href="#a4a51f5e7948e7a27adcd66023d48876d">More...</a><br/></td></tr>
<tr class="separator:a4a51f5e7948e7a27adcd66023d48876d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="acd9c941e7cfb86f5b0daf5c8eaee257a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define USB_CMD_CLASSREQ&#160;&#160;&#160;0x20</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Class Request. </p>

<p>Referenced by <a class="el" href="xusb__ch9_8h.html#a4a51f5e7948e7a27adcd66023d48876d">Ch9Handler()</a>, and <a class="el" href="xusb__freertos__class__keyboard_8c.html#a6b4c6d0f1989a268becf04033c4537df">Usb_ClassReq_Keyboard()</a>.</p>

</div>
</div>
<a class="anchor" id="a64404ce1fb01607a70f4dbf09b5c9ed8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define USB_CMD_STDREQ&#160;&#160;&#160;0x00</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Standard Request. </p>

<p>Referenced by <a class="el" href="xusb__ch9_8h.html#a4a51f5e7948e7a27adcd66023d48876d">Ch9Handler()</a>, and <a class="el" href="xusb__freertos__ch9__keyboard_8c.html#a043075687afdf64ad9382236bd155e60">Usb_GetDescReply()</a>.</p>

</div>
</div>
<a class="anchor" id="a5bca8c6c246291af78ec61f05a4684d5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define USB_CMD_VENDREQ&#160;&#160;&#160;0x40</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Vendor Request. </p>

<p>Referenced by <a class="el" href="xusb__ch9_8h.html#a4a51f5e7948e7a27adcd66023d48876d">Ch9Handler()</a>.</p>

</div>
</div>
<a class="anchor" id="a8be8332e2da1e54c74c5f2a2230b0a28"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define USB_REQ_TYPE_MASK&#160;&#160;&#160;0x60</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Mask for request opcode. </p>

<p>Referenced by <a class="el" href="xusb__ch9_8h.html#a4a51f5e7948e7a27adcd66023d48876d">Ch9Handler()</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a4a51f5e7948e7a27adcd66023d48876d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Ch9Handler </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="struct_usb___dev_data.html">Usb_DevData</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SetupPacket *&#160;</td>
          <td class="paramname"><em>SetupData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function handles a Setup Data packet from the host. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to <a class="el" href="struct_usb___dev_data.html" title="struct Usb_DevData - Application device data Application Data ">Usb_DevData</a> instance of the controller. </td></tr>
    <tr><td class="paramname">SetupData</td><td>is the structure containing the setup request.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_usb___dev_data.html#a35624c7f1dbe7a05bd61f4abf44d5cd8">Usb_DevData::PrivateData</a>, <a class="el" href="xusb__ch9_8h.html#acd9c941e7cfb86f5b0daf5c8eaee257a">USB_CMD_CLASSREQ</a>, <a class="el" href="xusb__ch9_8h.html#a64404ce1fb01607a70f4dbf09b5c9ed8">USB_CMD_STDREQ</a>, <a class="el" href="xusb__ch9_8h.html#a5bca8c6c246291af78ec61f05a4684d5">USB_CMD_VENDREQ</a>, and <a class="el" href="xusb__ch9_8h.html#a8be8332e2da1e54c74c5f2a2230b0a28">USB_REQ_TYPE_MASK</a>.</p>

<p>Referenced by <a class="el" href="xusb__intr__example_8c.html#a840291bc02cba5474a4cb46a9b9566fe">main()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
	<p class="footer">&copy; Copyright 2015-2022 Xilinx, Inc. All Rights Reserved.</p>
	<p class="footer">&copy; Copyright 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved.</p>
</div>
</body>
</html>
